/*
 * Filtron
 * Author: Jakub Krajniak (c) 2006-2007 <jkrajniak at gmail dot com>
 * Licence: GPL
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Filtron
{
    public partial class InputBox : Form
    {
        public InputBox(string inf)
        {
            InitializeComponent();
            label2.Text = inf;
        }

        private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Enter)
            {
                this.Close();
            }
        }
        public string GetAnswer()
        {
            return textBox1.Text;
        }
    }
}
